/* $Id:value.h $ */
/*
   Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl>
   Part of the Moros Project http://moros.sourceforge.net/

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License version 3.
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY.

   See the COPYING file for more details.
*/

#ifndef __VALUE_H
#define __VALUE_H

#include <string>
#include <map>
#include <list>
using namespace std;



class value {
    string name;
    int nr;
public:
    value();

    // Field : name
    const string getName() const;
    void setName(const string v);

    // Field : nr
    const int getNr() const;
    void setNr(const int v);
    int operator<(const value &ck) const;

    void xml(ofstream &f, int l=0, int r=0);
};

#endif // __VALUE_H
